package com.ibiaoke.goods.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class XcxGoodsClassExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected int limitStart;

    protected int limitEnd;

    protected String groupByClause;

    public XcxGoodsClassExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(int limitStart) {
        this.limitStart=limitStart;
    }

    public int getLimitStart() {
        return limitStart;
    }

    public void setLimitEnd(int limitEnd) {
        this.limitEnd=limitEnd;
    }

    public int getLimitEnd() {
        return limitEnd;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause=groupByClause;
    }

    public String getGroupByClause() {
        return groupByClause;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGcIdIsNull() {
            addCriterion("gc_id is null");
            return (Criteria) this;
        }

        public Criteria andGcIdIsNotNull() {
            addCriterion("gc_id is not null");
            return (Criteria) this;
        }

        public Criteria andGcIdEqualTo(Integer value) {
            addCriterion("gc_id =", value, "gcId");
            return (Criteria) this;
        }

        public Criteria andGcIdNotEqualTo(Integer value) {
            addCriterion("gc_id <>", value, "gcId");
            return (Criteria) this;
        }

        public Criteria andGcIdGreaterThan(Integer value) {
            addCriterion("gc_id >", value, "gcId");
            return (Criteria) this;
        }

        public Criteria andGcIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("gc_id >=", value, "gcId");
            return (Criteria) this;
        }

        public Criteria andGcIdLessThan(Integer value) {
            addCriterion("gc_id <", value, "gcId");
            return (Criteria) this;
        }

        public Criteria andGcIdLessThanOrEqualTo(Integer value) {
            addCriterion("gc_id <=", value, "gcId");
            return (Criteria) this;
        }

        public Criteria andGcIdIn(List<Integer> values) {
            addCriterion("gc_id in", values, "gcId");
            return (Criteria) this;
        }

        public Criteria andGcIdNotIn(List<Integer> values) {
            addCriterion("gc_id not in", values, "gcId");
            return (Criteria) this;
        }

        public Criteria andGcIdBetween(Integer value1, Integer value2) {
            addCriterion("gc_id between", value1, value2, "gcId");
            return (Criteria) this;
        }

        public Criteria andGcIdNotBetween(Integer value1, Integer value2) {
            addCriterion("gc_id not between", value1, value2, "gcId");
            return (Criteria) this;
        }

        public Criteria andGcNameIsNull() {
            addCriterion("gc_name is null");
            return (Criteria) this;
        }

        public Criteria andGcNameIsNotNull() {
            addCriterion("gc_name is not null");
            return (Criteria) this;
        }

        public Criteria andGcNameEqualTo(String value) {
            addCriterion("gc_name =", value, "gcName");
            return (Criteria) this;
        }

        public Criteria andGcNameNotEqualTo(String value) {
            addCriterion("gc_name <>", value, "gcName");
            return (Criteria) this;
        }

        public Criteria andGcNameGreaterThan(String value) {
            addCriterion("gc_name >", value, "gcName");
            return (Criteria) this;
        }

        public Criteria andGcNameGreaterThanOrEqualTo(String value) {
            addCriterion("gc_name >=", value, "gcName");
            return (Criteria) this;
        }

        public Criteria andGcNameLessThan(String value) {
            addCriterion("gc_name <", value, "gcName");
            return (Criteria) this;
        }

        public Criteria andGcNameLessThanOrEqualTo(String value) {
            addCriterion("gc_name <=", value, "gcName");
            return (Criteria) this;
        }

        public Criteria andGcNameLike(String value) {
            addCriterion("gc_name like", value, "gcName");
            return (Criteria) this;
        }

        public Criteria andGcNameNotLike(String value) {
            addCriterion("gc_name not like", value, "gcName");
            return (Criteria) this;
        }

        public Criteria andGcNameIn(List<String> values) {
            addCriterion("gc_name in", values, "gcName");
            return (Criteria) this;
        }

        public Criteria andGcNameNotIn(List<String> values) {
            addCriterion("gc_name not in", values, "gcName");
            return (Criteria) this;
        }

        public Criteria andGcNameBetween(String value1, String value2) {
            addCriterion("gc_name between", value1, value2, "gcName");
            return (Criteria) this;
        }

        public Criteria andGcNameNotBetween(String value1, String value2) {
            addCriterion("gc_name not between", value1, value2, "gcName");
            return (Criteria) this;
        }

        public Criteria andGcParentIdIsNull() {
            addCriterion("gc_parent_id is null");
            return (Criteria) this;
        }

        public Criteria andGcParentIdIsNotNull() {
            addCriterion("gc_parent_id is not null");
            return (Criteria) this;
        }

        public Criteria andGcParentIdEqualTo(Integer value) {
            addCriterion("gc_parent_id =", value, "gcParentId");
            return (Criteria) this;
        }

        public Criteria andGcParentIdNotEqualTo(Integer value) {
            addCriterion("gc_parent_id <>", value, "gcParentId");
            return (Criteria) this;
        }

        public Criteria andGcParentIdGreaterThan(Integer value) {
            addCriterion("gc_parent_id >", value, "gcParentId");
            return (Criteria) this;
        }

        public Criteria andGcParentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("gc_parent_id >=", value, "gcParentId");
            return (Criteria) this;
        }

        public Criteria andGcParentIdLessThan(Integer value) {
            addCriterion("gc_parent_id <", value, "gcParentId");
            return (Criteria) this;
        }

        public Criteria andGcParentIdLessThanOrEqualTo(Integer value) {
            addCriterion("gc_parent_id <=", value, "gcParentId");
            return (Criteria) this;
        }

        public Criteria andGcParentIdIn(List<Integer> values) {
            addCriterion("gc_parent_id in", values, "gcParentId");
            return (Criteria) this;
        }

        public Criteria andGcParentIdNotIn(List<Integer> values) {
            addCriterion("gc_parent_id not in", values, "gcParentId");
            return (Criteria) this;
        }

        public Criteria andGcParentIdBetween(Integer value1, Integer value2) {
            addCriterion("gc_parent_id between", value1, value2, "gcParentId");
            return (Criteria) this;
        }

        public Criteria andGcParentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("gc_parent_id not between", value1, value2, "gcParentId");
            return (Criteria) this;
        }

        public Criteria andGcSortIsNull() {
            addCriterion("gc_sort is null");
            return (Criteria) this;
        }

        public Criteria andGcSortIsNotNull() {
            addCriterion("gc_sort is not null");
            return (Criteria) this;
        }

        public Criteria andGcSortEqualTo(Integer value) {
            addCriterion("gc_sort =", value, "gcSort");
            return (Criteria) this;
        }

        public Criteria andGcSortNotEqualTo(Integer value) {
            addCriterion("gc_sort <>", value, "gcSort");
            return (Criteria) this;
        }

        public Criteria andGcSortGreaterThan(Integer value) {
            addCriterion("gc_sort >", value, "gcSort");
            return (Criteria) this;
        }

        public Criteria andGcSortGreaterThanOrEqualTo(Integer value) {
            addCriterion("gc_sort >=", value, "gcSort");
            return (Criteria) this;
        }

        public Criteria andGcSortLessThan(Integer value) {
            addCriterion("gc_sort <", value, "gcSort");
            return (Criteria) this;
        }

        public Criteria andGcSortLessThanOrEqualTo(Integer value) {
            addCriterion("gc_sort <=", value, "gcSort");
            return (Criteria) this;
        }

        public Criteria andGcSortIn(List<Integer> values) {
            addCriterion("gc_sort in", values, "gcSort");
            return (Criteria) this;
        }

        public Criteria andGcSortNotIn(List<Integer> values) {
            addCriterion("gc_sort not in", values, "gcSort");
            return (Criteria) this;
        }

        public Criteria andGcSortBetween(Integer value1, Integer value2) {
            addCriterion("gc_sort between", value1, value2, "gcSort");
            return (Criteria) this;
        }

        public Criteria andGcSortNotBetween(Integer value1, Integer value2) {
            addCriterion("gc_sort not between", value1, value2, "gcSort");
            return (Criteria) this;
        }

        public Criteria andGcPicIsNull() {
            addCriterion("gc_pic is null");
            return (Criteria) this;
        }

        public Criteria andGcPicIsNotNull() {
            addCriterion("gc_pic is not null");
            return (Criteria) this;
        }

        public Criteria andGcPicEqualTo(String value) {
            addCriterion("gc_pic =", value, "gcPic");
            return (Criteria) this;
        }

        public Criteria andGcPicNotEqualTo(String value) {
            addCriterion("gc_pic <>", value, "gcPic");
            return (Criteria) this;
        }

        public Criteria andGcPicGreaterThan(String value) {
            addCriterion("gc_pic >", value, "gcPic");
            return (Criteria) this;
        }

        public Criteria andGcPicGreaterThanOrEqualTo(String value) {
            addCriterion("gc_pic >=", value, "gcPic");
            return (Criteria) this;
        }

        public Criteria andGcPicLessThan(String value) {
            addCriterion("gc_pic <", value, "gcPic");
            return (Criteria) this;
        }

        public Criteria andGcPicLessThanOrEqualTo(String value) {
            addCriterion("gc_pic <=", value, "gcPic");
            return (Criteria) this;
        }

        public Criteria andGcPicLike(String value) {
            addCriterion("gc_pic like", value, "gcPic");
            return (Criteria) this;
        }

        public Criteria andGcPicNotLike(String value) {
            addCriterion("gc_pic not like", value, "gcPic");
            return (Criteria) this;
        }

        public Criteria andGcPicIn(List<String> values) {
            addCriterion("gc_pic in", values, "gcPic");
            return (Criteria) this;
        }

        public Criteria andGcPicNotIn(List<String> values) {
            addCriterion("gc_pic not in", values, "gcPic");
            return (Criteria) this;
        }

        public Criteria andGcPicBetween(String value1, String value2) {
            addCriterion("gc_pic between", value1, value2, "gcPic");
            return (Criteria) this;
        }

        public Criteria andGcPicNotBetween(String value1, String value2) {
            addCriterion("gc_pic not between", value1, value2, "gcPic");
            return (Criteria) this;
        }

        public Criteria andLevelIsNull() {
            addCriterion("level is null");
            return (Criteria) this;
        }

        public Criteria andLevelIsNotNull() {
            addCriterion("level is not null");
            return (Criteria) this;
        }

        public Criteria andLevelEqualTo(Integer value) {
            addCriterion("level =", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotEqualTo(Integer value) {
            addCriterion("level <>", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThan(Integer value) {
            addCriterion("level >", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("level >=", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLessThan(Integer value) {
            addCriterion("level <", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLessThanOrEqualTo(Integer value) {
            addCriterion("level <=", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelIn(List<Integer> values) {
            addCriterion("level in", values, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotIn(List<Integer> values) {
            addCriterion("level not in", values, "level");
            return (Criteria) this;
        }

        public Criteria andLevelBetween(Integer value1, Integer value2) {
            addCriterion("level between", value1, value2, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotBetween(Integer value1, Integer value2) {
            addCriterion("level not between", value1, value2, "level");
            return (Criteria) this;
        }

        public Criteria andDelStatusIsNull() {
            addCriterion("del_status is null");
            return (Criteria) this;
        }

        public Criteria andDelStatusIsNotNull() {
            addCriterion("del_status is not null");
            return (Criteria) this;
        }

        public Criteria andDelStatusEqualTo(Byte value) {
            addCriterion("del_status =", value, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusNotEqualTo(Byte value) {
            addCriterion("del_status <>", value, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusGreaterThan(Byte value) {
            addCriterion("del_status >", value, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("del_status >=", value, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusLessThan(Byte value) {
            addCriterion("del_status <", value, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusLessThanOrEqualTo(Byte value) {
            addCriterion("del_status <=", value, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusIn(List<Byte> values) {
            addCriterion("del_status in", values, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusNotIn(List<Byte> values) {
            addCriterion("del_status not in", values, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusBetween(Byte value1, Byte value2) {
            addCriterion("del_status between", value1, value2, "delStatus");
            return (Criteria) this;
        }

        public Criteria andDelStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("del_status not between", value1, value2, "delStatus");
            return (Criteria) this;
        }

        public Criteria andCeateTimeIsNull() {
            addCriterion("ceate_time is null");
            return (Criteria) this;
        }

        public Criteria andCeateTimeIsNotNull() {
            addCriterion("ceate_time is not null");
            return (Criteria) this;
        }

        public Criteria andCeateTimeEqualTo(Date value) {
            addCriterion("ceate_time =", value, "ceateTime");
            return (Criteria) this;
        }

        public Criteria andCeateTimeNotEqualTo(Date value) {
            addCriterion("ceate_time <>", value, "ceateTime");
            return (Criteria) this;
        }

        public Criteria andCeateTimeGreaterThan(Date value) {
            addCriterion("ceate_time >", value, "ceateTime");
            return (Criteria) this;
        }

        public Criteria andCeateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("ceate_time >=", value, "ceateTime");
            return (Criteria) this;
        }

        public Criteria andCeateTimeLessThan(Date value) {
            addCriterion("ceate_time <", value, "ceateTime");
            return (Criteria) this;
        }

        public Criteria andCeateTimeLessThanOrEqualTo(Date value) {
            addCriterion("ceate_time <=", value, "ceateTime");
            return (Criteria) this;
        }

        public Criteria andCeateTimeIn(List<Date> values) {
            addCriterion("ceate_time in", values, "ceateTime");
            return (Criteria) this;
        }

        public Criteria andCeateTimeNotIn(List<Date> values) {
            addCriterion("ceate_time not in", values, "ceateTime");
            return (Criteria) this;
        }

        public Criteria andCeateTimeBetween(Date value1, Date value2) {
            addCriterion("ceate_time between", value1, value2, "ceateTime");
            return (Criteria) this;
        }

        public Criteria andCeateTimeNotBetween(Date value1, Date value2) {
            addCriterion("ceate_time not between", value1, value2, "ceateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}